#ifndef CWORKER_REDIS_H_
#define CWORKER_REDIS_H_

#include "cworker.h"
#include "cworker_redis_cfg.h"
#include "hiredis.h"
#include "json/cJSON.h"

#ifdef __cplusplus
extern "C" {
#endif

int cworker_redis_init(cworker_redis_cfg_t *);
void cworker_redis_finit(void);
cJSON * cworker_redis_blpop(char *, int);
cJSON * cworker_redis_hget(char *);

#ifdef __cplusplus
};
#endif
#endif
